<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:th="http://www.thymeleaf.org"
	xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity3">
<head>
<meta charset="UTF-8">
<title>知识库</title>
<link rel="stylesheet" href="../layui/css/layui.css" media="all">
<script src="../tinymce/tinymce.min.js"></script>
<script src="../layui/layui.all.js"></script>
<script>
  var layer = layui.layer;
  tinymce.init({
    selector: '#mytextarea',
    branding: false,
    //statusbar: false,
    height: 1000,
    language:'zh_CN',
    //skin: 'oxide-dark',
    theme:'silver',
    inline: false,
    placeholder: 'Hello, World!',
    
    plugins: 'code lists advlist autolink link image imagetools lists charmap save print preview autosave codesample emoticons fullscreen hr insertdatetime searchreplace table wordcount',
    toolbar: [
        'save | restoredraft | undo redo | searchreplace | styleselect | bullist numlist | bold italic | link image | code codesample | fullscreen print preview',
        'alignleft aligncenter alignright | hr insertdatetime emoticons table wordcount '
    ],
    images_upload_url: '/kb/file/upload',
    
   // save_enablewhendirty: false,
    save_onsavecallback: function () {
    	layer.msg('已保存'); 
    },
  });
  </script>
</head>
<body>
	<form class="layui-form" method="post">
		<div class="layui-form-item" style="position: fixed ; z-index: 10; top: 0; left: 0; right: 0; height: 35px; padding :5px; background-color: #D0D0D0; ">
			<div class="" style="float: left;">添加随笔</div>
			<div class="layui-input-block" style="float: right;">
				<button class="layui-btn">立即提交</button>
				<button type="reset" class="layui-btn layui-btn-primary">重置</button>
			</div>
		</div>
		<div class="layui-form-item" style="height: 50px">
		</div>
		<div class="layui-form-item" style="">
			<label class="layui-form-label">标题</label>
			<div class="layui-input-block">
				<input type="text" name="title" autocomplete="off"
					placeholder="请输入标题" class="layui-input">
			</div>
		</div>
		<textarea id="mytextarea"></textarea>
		
	</form>
</body>
</html>